import '@/styles/index.scss'
import {createApp} from 'vue'
import App from '@/App.vue'
// 引入element-plus插件与样式
import ElementPlus from 'element-plus'
//@ts-ignore
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// 引入svg插件需要的代码
import 'virtual:svg-icons-register'
import globalComponent from '@/components/index'
import router from '@/router'
import pinia from '@/store'
import '@/permission'

const app = createApp(App)
app.use(ElementPlus, {locale: zhCn})
// 注册全局组件
app.use(globalComponent)
// 引入路由
app.use(router)
// 引入仓库
app.use(pinia)
app.mount('#app')
